﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;

namespace IHISCETeim.BLL
{
    public class SAPBorrowController
    {
        public static SAPBorrowInfo SAPBorrow_GetList(int BrwID)
        {
            return CBO.FillObject< SAPBorrowInfo>( SAPBorrowDAL.SAPBorrow_GetList(BrwID));
        }
        public static DataTable SAPBorrow_GetPagination(string whereSql, int PageIndex, int PageSize, string Sort, ref int TotalCount)
        {
            return SAPBorrowDAL.SAPBorrow_GetPagination(whereSql, PageIndex, PageSize, Sort, ref TotalCount);
        }
        public static int SAPBorrowReturn_Add(SAPBorrowReturnInfo obj)
        {
            return SAPBorrowDAL.SAPBorrowReturn_Add(obj);
        }
        public static List<SAPBorrowReturnInfo> SAPBorrowReturn_GetAll(int BrwID)
        {
            return CBO.FillCollection < SAPBorrowReturnInfo>( SAPBorrowDAL.SAPBorrowReturn_GetAll(BrwID));
        }

    }
}
